<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Struct template split_view</title>
<link rel="stylesheet" href="../../../../doc/src/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
<link rel="home" href="../../index.html" title="The Boost C++ Libraries BoostBook Documentation Subset">
<link rel="up" href="../../headers.html#doxygen.headers.split_8hpp" title="Header &lt;boost/parser/split.hpp&gt;">
<link rel="prev" href="namespaceboost_1_1parser_1a9c9f647f054b780807e42248408ec5b7.html" title="Function template search">
<link rel="next" href="structboost_1_1parser_1_1split__view_1_1iterator.html" title="Struct template iterator">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../boost.png"></td>
<td align="center"><a href="../../../../index.html">Home</a></td>
<td align="center"><a href="../../../../libs/libraries.htm">Libraries</a></td>
<td align="center"><a href="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td>
<td align="center"><a href="../../../../more/index.htm">More</a></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="namespaceboost_1_1parser_1a9c9f647f054b780807e42248408ec5b7.html"><img src="../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../headers.html#doxygen.headers.split_8hpp"><img src="../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="structboost_1_1parser_1_1split__view_1_1iterator.html"><img src="../../../../doc/src/images/next.png" alt="Next"></a>
</div>
<div class="refentry">
<a name="doxygen.headers.structboost_1_1parser_1_1split__view"></a><div class="titlepage"></div>
<div class="refnamediv">
<h2><span class="refentrytitle">Struct template split_view</span></h2>
<p>boost::parser::split_view</p>
</div>
<h2 class="refsynopsisdiv-title">Synopsis</h2>
<div class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: &lt;<a class="link" href="../../headers.html#doxygen.headers.split_8hpp" title="Header &lt;boost/parser/split.hpp&gt;">boost/parser/split.hpp</a>&gt;

</span><span class="keyword">template</span><span class="special">&lt;</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">ranges</span><span class="special">::</span><span class="identifier">viewable_range</span> V<span class="special">,</span> <span class="keyword">typename</span> Parser<span class="special">,</span> <span class="keyword">typename</span> GlobalState<span class="special">,</span> 
         <span class="keyword">typename</span> ErrorHandler<span class="special">,</span> <span class="keyword">typename</span> SkipParser<span class="special">&gt;</span> 
<span class="keyword">struct</span> <a class="link" href="structboost_1_1parser_1_1split__view.html" title="Struct template split_view">split_view</a> <span class="special">{</span>
  <span class="comment">// member classes/structs/unions</span>
  <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">bool</span> Const<span class="special">&gt;</span> 
  <span class="keyword">struct</span> <a class="link" href="structboost_1_1parser_1_1split__view_1_1iterator.html" title="Struct template iterator">iterator</a> <span class="special">{</span>
    <span class="comment">// types</span>
    <span class="keyword">typedef</span> <span class="emphasis"><em><span class="identifier">unspecified</span></em></span> <a class="link" href="structboost_1_1parser_1_1split__view_1_1iterator.html#doxygen.headers.structboost_1_1parser_1_1split__view_1_1iterator_1afa4e861637ae3c7e34906a16476b065e"><span class="identifier">I</span></a><span class="special">;</span>        
    <span class="keyword">typedef</span> <span class="emphasis"><em><span class="identifier">unspecified</span></em></span> <a class="link" href="structboost_1_1parser_1_1split__view_1_1iterator.html#doxygen.headers.structboost_1_1parser_1_1split__view_1_1iterator_1a6cc8a9db8b379b51e1a7d16ddc5a9533"><span class="identifier">S</span></a><span class="special">;</span>        
    <span class="keyword">typedef</span> <span class="emphasis"><em><span class="identifier">unspecified</span></em></span> <a class="link" href="structboost_1_1parser_1_1split__view_1_1iterator.html#doxygen.headers.structboost_1_1parser_1_1split__view_1_1iterator_1a79df7142793e91db31da52b0dc10ecbe"><span class="identifier">base_type</span></a><span class="special">;</span>

    <span class="comment">// <a class="link" href="structboost_1_1parser_1_1split__view_1_1iterator.html#id-1_3_26_11_9_1_1_1_3_5-bb">public member functions</a></span>
    <a class="link" href="structboost_1_1parser_1_1split__view_1_1iterator.html#doxygen.headers.structboost_1_1parser_1_1split__view_1_1iterator_1a48ae4cf34f970ec232db44f5b4d01a4e"><span class="identifier">iterator</span></a><span class="special">(</span><span class="special">)</span> <span class="special">=</span> <span class="keyword">default</span><span class="special">;</span>
    <a class="link" href="structboost_1_1parser_1_1split__view_1_1iterator.html#doxygen.headers.structboost_1_1parser_1_1split__view_1_1iterator_1aea6431b02136c2d459b5377889303ff2"><span class="identifier">iterator</span></a><span class="special">(</span><span class="emphasis"><em><span class="identifier">unspecified</span></em></span><span class="special">)</span><span class="special">;</span>
    <a class="link" href="structboost_1_1parser_1_1split__view_1_1iterator.html" title="Struct template iterator">iterator</a> <span class="special">&amp;</span> <a class="link" href="structboost_1_1parser_1_1split__view_1_1iterator.html#doxygen.headers.structboost_1_1parser_1_1split__view_1_1iterator_1a1f1d7b97cf43c669c127f1246a72dab2"><span class="keyword">operator</span><span class="special">++</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span>
    <span class="identifier">BOOST_PARSER_SUBRANGE</span><span class="special">&lt;</span> <span class="identifier">I</span> <span class="special">&gt;</span> <a class="link" href="structboost_1_1parser_1_1split__view_1_1iterator.html#doxygen.headers.structboost_1_1parser_1_1split__view_1_1iterator_1a676fc296321b804cd53486953e8bde56"><span class="keyword">operator</span><span class="special">*</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="special">}</span><span class="special">;</span>
  <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">bool</span> Const<span class="special">&gt;</span> 
  <span class="keyword">struct</span> <a class="link" href="structboost_1_1parser_1_1split__view_1_1sentinel.html" title="Struct template sentinel">sentinel</a> <span class="special">{</span>
  <span class="special">}</span><span class="special">;</span>

  <span class="comment">// <a class="link" href="structboost_1_1parser_1_1split__view.html#id-1_3_26_11_9_1_1_1_5-bb">public member functions</a></span>
  <a class="link" href="structboost_1_1parser_1_1split__view.html#doxygen.headers.structboost_1_1parser_1_1split__view_1a2b9ad39f40b3c343100683df0bf8f834"><span class="identifier">split_view</span></a><span class="special">(</span><span class="special">)</span> <span class="special">=</span> <span class="keyword">default</span><span class="special">;</span>
  <a class="link" href="structboost_1_1parser_1_1split__view.html#doxygen.headers.structboost_1_1parser_1_1split__view_1a939dfac3612dd9501d623f0e7e9c17c5"><span class="identifier">split_view</span></a><span class="special">(</span><span class="identifier">V</span><span class="special">,</span> <a class="link" href="structboost_1_1parser_1_1parser__interface.html" title="Struct template parser_interface">parser_interface</a><span class="special">&lt;</span> <span class="identifier">Parser</span><span class="special">,</span> <span class="identifier">GlobalState</span><span class="special">,</span> <span class="identifier">ErrorHandler</span> <span class="special">&gt;</span> <span class="keyword">const</span> <span class="special">&amp;</span><span class="special">,</span> 
             <a class="link" href="structboost_1_1parser_1_1parser__interface.html" title="Struct template parser_interface">parser_interface</a><span class="special">&lt;</span> <span class="identifier">SkipParser</span> <span class="special">&gt;</span> <span class="keyword">const</span> <span class="special">&amp;</span><span class="special">,</span> <span class="identifier">trace</span> <span class="special">=</span> <span class="identifier">trace</span><span class="special">::</span><span class="identifier">off</span><span class="special">)</span><span class="special">;</span>
  <a class="link" href="structboost_1_1parser_1_1split__view.html#doxygen.headers.structboost_1_1parser_1_1split__view_1a7887e1121f8642628ae689d376af89c2"><span class="identifier">split_view</span></a><span class="special">(</span><span class="identifier">V</span><span class="special">,</span> <a class="link" href="structboost_1_1parser_1_1parser__interface.html" title="Struct template parser_interface">parser_interface</a><span class="special">&lt;</span> <span class="identifier">Parser</span><span class="special">,</span> <span class="identifier">GlobalState</span><span class="special">,</span> <span class="identifier">ErrorHandler</span> <span class="special">&gt;</span> <span class="keyword">const</span> <span class="special">&amp;</span><span class="special">,</span> 
             <span class="identifier">trace</span> <span class="special">=</span> <span class="identifier">trace</span><span class="special">::</span><span class="identifier">off</span><span class="special">)</span><span class="special">;</span>
  <span class="identifier">V</span> <a class="link" href="structboost_1_1parser_1_1split__view.html#doxygen.headers.structboost_1_1parser_1_1split__view_1a7c3a6b5bf7299e3e9ab03e1ebaafe092"><span class="identifier">base</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="identifier">V</span> <a class="link" href="structboost_1_1parser_1_1split__view.html#doxygen.headers.structboost_1_1parser_1_1split__view_1a0fa1ccd0b65f926d3fe79e8e7777bb30"><span class="identifier">base</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">auto</span> <a class="link" href="structboost_1_1parser_1_1split__view.html#doxygen.headers.structboost_1_1parser_1_1split__view_1ad97469fecb37b56b019634212b44e7e0"><span class="identifier">begin</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">auto</span> <a class="link" href="structboost_1_1parser_1_1split__view.html#doxygen.headers.structboost_1_1parser_1_1split__view_1ad352ad25298727c01970f784da059138"><span class="identifier">end</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">auto</span> <a class="link" href="structboost_1_1parser_1_1split__view.html#doxygen.headers.structboost_1_1parser_1_1split__view_1a20bd73cba6bbf61255a43395227b773b"><span class="identifier">begin</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="keyword">auto</span> <a class="link" href="structboost_1_1parser_1_1split__view.html#doxygen.headers.structboost_1_1parser_1_1split__view_1a12040839a875e082c02d2b7b014f5c84"><span class="identifier">end</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
<span class="special">}</span><span class="special">;</span></pre></div>
<div class="refsect1">
<a name="id-1.3.26.11.9.3.4"></a><h2>Description</h2>
<p>Produces a sequence of subranges of the underlying sequence of type <code class="computeroutput">V</code>. the underlying sequence is split into subranges delimited by matches of the given parser, possibly using a given skip-parser. </p>
<div class="refsect2">
<a name="id-1.3.26.11.9.3.4.3"></a><h3>
<a name="id-1_3_26_11_9_1_1_1_5-bb"></a><code class="computeroutput">split_view</code> public member functions</h3>
<div class="orderedlist"><ol class="orderedlist" type="1">
<li class="listitem"><pre class="literallayout"><a name="doxygen.headers.structboost_1_1parser_1_1split__view_1a2b9ad39f40b3c343100683df0bf8f834"></a><span class="identifier">split_view</span><span class="special">(</span><span class="special">)</span> <span class="special">=</span> <span class="keyword">default</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><a name="doxygen.headers.structboost_1_1parser_1_1split__view_1a939dfac3612dd9501d623f0e7e9c17c5"></a><span class="identifier">split_view</span><span class="special">(</span><span class="identifier">V</span> base<span class="special">,</span> 
           <a class="link" href="structboost_1_1parser_1_1parser__interface.html" title="Struct template parser_interface">parser_interface</a><span class="special">&lt;</span> <span class="identifier">Parser</span><span class="special">,</span> <span class="identifier">GlobalState</span><span class="special">,</span> <span class="identifier">ErrorHandler</span> <span class="special">&gt;</span> <span class="keyword">const</span> <span class="special">&amp;</span> parser<span class="special">,</span> 
           <a class="link" href="structboost_1_1parser_1_1parser__interface.html" title="Struct template parser_interface">parser_interface</a><span class="special">&lt;</span> <span class="identifier">SkipParser</span> <span class="special">&gt;</span> <span class="keyword">const</span> <span class="special">&amp;</span> skip<span class="special">,</span> 
           <span class="identifier">trace</span> trace_mode <span class="special">=</span> <span class="identifier">trace</span><span class="special">::</span><span class="identifier">off</span><span class="special">)</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><a name="doxygen.headers.structboost_1_1parser_1_1split__view_1a7887e1121f8642628ae689d376af89c2"></a><span class="identifier">split_view</span><span class="special">(</span><span class="identifier">V</span> base<span class="special">,</span> 
           <a class="link" href="structboost_1_1parser_1_1parser__interface.html" title="Struct template parser_interface">parser_interface</a><span class="special">&lt;</span> <span class="identifier">Parser</span><span class="special">,</span> <span class="identifier">GlobalState</span><span class="special">,</span> <span class="identifier">ErrorHandler</span> <span class="special">&gt;</span> <span class="keyword">const</span> <span class="special">&amp;</span> parser<span class="special">,</span> 
           <span class="identifier">trace</span> trace_mode <span class="special">=</span> <span class="identifier">trace</span><span class="special">::</span><span class="identifier">off</span><span class="special">)</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="identifier">V</span> <a name="doxygen.headers.structboost_1_1parser_1_1split__view_1a7c3a6b5bf7299e3e9ab03e1ebaafe092"></a><span class="identifier">base</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="identifier">V</span> <a name="doxygen.headers.structboost_1_1parser_1_1split__view_1a0fa1ccd0b65f926d3fe79e8e7777bb30"></a><span class="identifier">base</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="keyword">auto</span> <a name="doxygen.headers.structboost_1_1parser_1_1split__view_1ad97469fecb37b56b019634212b44e7e0"></a><span class="identifier">begin</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="keyword">auto</span> <a name="doxygen.headers.structboost_1_1parser_1_1split__view_1ad352ad25298727c01970f784da059138"></a><span class="identifier">end</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="keyword">auto</span> <a name="doxygen.headers.structboost_1_1parser_1_1split__view_1a20bd73cba6bbf61255a43395227b773b"></a><span class="identifier">begin</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="keyword">auto</span> <a name="doxygen.headers.structboost_1_1parser_1_1split__view_1a12040839a875e082c02d2b7b014f5c84"></a><span class="identifier">end</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre></li>
</ol></div>
</div>
</div>
</div>
<div class="copyright-footer">Copyright © 2020 T. Zachary Laine<p>
        Distributed under the Boost Software License, Version 1.0. (See accompanying
        file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
      </p>
</div>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="namespaceboost_1_1parser_1a9c9f647f054b780807e42248408ec5b7.html"><img src="../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../headers.html#doxygen.headers.split_8hpp"><img src="../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="structboost_1_1parser_1_1split__view_1_1iterator.html"><img src="../../../../doc/src/images/next.png" alt="Next"></a>
</div>
</body>
</html>
